#include <stdio.h>

int main() {
	int i = 0;
	char a[40], b[40];
	gets (a);
	while (a[i] != '\0') {
		if (a[i] == 65 || a[i] == 97)
			b[i] = a[i] + 25;
		else if (a[i] < 91 && a[i] > 65)
			b[i] = 90 - a[i] + 64 + 1;
		else if (a[i] < 123 && a[i] > 97)
			b[i] = 122 - a[i] + 96 + 1;
		else
			b[i] = a[i];
		i++;
	}
	b[i] = '\0';
	printf("cipher text is:%s\n", a);
	printf("plain text is:%s", b);
}